<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	fullLotNo	= Request("fullLotNo")
	lotSubNo	= Request("lotSubNo")
	processRank	= Request("processRank")
	orderMemo	= Request("orderMemo")
	flag		= Request("flag")

	orderMemo	= Replace(orderMemo,"'","''")
	issueId = Request.Cookies("S_uid")


	If fullLotNo <> "" Then 
		'divLotNo = Split(fullLotNo,"-")
		lotYear = Left(fullLotNo,2)
		lotNo = Right(fullLotNo,4)
	End If 
	
	If processRank <> "" Then 
		divProcRank = Split(processRank,"_")
		processCd = divProcRank(0)
		rank = divProcRank(1)
	End If 

	SQLTitle = "-- ■■■■ 단위 공정별 메모 저장 ■■■■"
	SQL = "exec spSaveOrderMemo '" & lotNo & "', '" & lotYear & "', '" & lotSubNo & "', '" & processCd & "', " & rank & ", '" & orderMemo & "', '" & issueId & "', '" & flag & "'"

	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

'Response.write SQL
'Response.end
	DbCon.Execute SQL

	Call rsWithXML("Save OK!^##^"+orderMemo)
	Response.end
%>